package cc.admin.modules.wea.mapper;

import java.util.List;

import cc.admin.modules.wea.entity.WeaWarningRecord;
import org.apache.ibatis.annotations.Param;
import cc.admin.modules.wea.entity.WeaPlatform;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @Description: 平台基本信息表
 * @Author: cc-admin
 * @Date:   2024-09-03
 * @Version: V1.0.0
 */
public interface WeaPlatformMapper extends BaseMapper<WeaPlatform> {
    @Select("select * from wea_platform ")
    List<WeaPlatform> getPlatformAll();

    @Select("select * from wea_warning_record where platform_id=#{platformId}")
    List<WeaWarningRecord> getWarnId(String platformId);

    List<WeaWarningRecord> getWarnIds(List<String> ids);
}
